{template header.html}
<script type="text/javascript">
$(function() {
});

</script>
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
    <div class="table-list col-tab">
        <ul class="tabBut cu-li">
            <li class="on">{$name}</li>
        </ul>
        <div class="contentList pad-10">
		<form action="" method="post" id="myform" name="myform">
		<table width="100%" class="table_form">
		<tr>
			<th width="200"><font color="red">*</font>&nbsp;{lang('html-026')}： </th>
			<td>
			<input type="text" required style="width:180px;" value="{$data.name}" name="name" class="input-text" />
			<div class="onShow">{lang('html-027')}</div>
			</td>
		</tr>
        {if in_array($type, array(1,2,3,4,8))}
            <tr class="dr_type dr_type_1">
                <th>{lang('213')}： </th>
                <td>
                    {dr_field_input('value_file', 'file', $field['value_file']['setting'], $value.file)}
                </td>
            </tr>
            <tr class="dr_type dr_type_1">
                <th>{lang('html-377')}： </th>
                <td>
                    <input type="text" style="width:400px;" value="{$value.url}" name="value_url" class="input-text" />
                </td>
            </tr>
        {else if $type == 6}
            <tr class="dr_type dr_type_1">
                <th>{lang('html-140')}： </th>
                <td>
                    {dr_field_input('value_color', 'color', array(), $value.color)}
                </td>
            </tr>
            <tr class="dr_type dr_type_1">
                <th>{lang('html-802')}： </th>
                <td>
                    <textarea style="width:395px;height:90px" class="input-text" name="value_text">{$value.text}</textarea>
                </td>
            </tr>
            <tr class="dr_type dr_type_1">
                <th>{lang('html-377')}： </th>
                <td>
                    <input type="text" style="width:400px;" value="{$value.url}" name="value_url" class="input-text" />

                </td>
            </tr>
        {else}
            <tr class="dr_type dr_type_1">
                <th>{lang('html-802')}： </th>
                <td>
                    <textarea style="width:60%;height:120px" class="input-text" name="data[value_code]">{$value.code}</textarea>
                </td>
            </tr>
        {/if}

            <tr>
                <th><font color="red">*</font>&nbsp;{lang('html-798')}： </th>
                <td>
                    {dr_field_input('starttime', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>80)), (int)$data.starttime)}
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    {lang('html-799')}： {dr_field_input('endtime', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>80)), (int)$data.endtime)}
                    <div class="onShow">{lang('html-800')}</div>
                </td>
            </tr>
        <tr>
            <th><font color="red">*</font>&nbsp;{lang('html-322')}： </th>
            <td>
                <input type="radio" name="data[status]" value="1" {if $data['status']}checked{/if} />&nbsp;&nbsp;<label>{lang('html-626')}</label>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio" name="data[status]" value="0" {if !$data['status']}checked{/if} />&nbsp;&nbsp;<label>{lang('close')}</label>

            </td>
        </tr>
		<tr>
			<th> </th>
			<td><input value="{lang('submit')}" type="submit" name="submit" class="button" />
			</td>
		</tr>
		</table>
		</form>
	    </div>
	</div>
</div>
{template footer.html}